# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-umap
_pkgname=umap
pkgver=0.1.1
pkgrel=4
pkgdesc='UNIST synthesis MAP solution.'
arch=('any')
url='https://pypi.org/project/umap/#files'
license=('custom:unknown')
depends=('python' 'python-folium' 'python-vincenty')
makedepends=('python-build' 'python-pip' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('09b0a8f556b57f8431ca118dbb4541759f6357f63df200269ffd58988113ec21d995d43876699ad33cab2fd0b194fe0d1d113a2bd6bc1412abc54c107777392b')

build() {
  cd "$_pkgname-$pkgver"

  python -m build --wheel --outdir="$startdir/dist"
}

package() {
  cd "$_pkgname-$pkgver"

  pip install \
    --verbose \
    --disable-pip-version-check \
    --no-warn-script-location \
    --ignore-installed \
    --no-compile \
    --no-deps \
    --root="$pkgdir" \
    --prefix=/usr \
    --no-index \
    --find-links="file://$startdir/dist" \
    $_pkgname
}

